package com.san.hkhospital.controller;
import com.san.hkhospital.entity.Permission;
import com.san.hkhospital.service.impl.PermissionServiceImpl;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
* (permission)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/permission")
public class PermissionController {
/**
* 服务对象
*/
@Resource
private PermissionServiceImpl permissionServiceImpl;

/**
* 通过主键查询单条数据
*
* @param id 主键
* @return 单条数据
*/
@GetMapping("selectOne")
public Permission selectOne(Integer id) {
return permissionServiceImpl.selectByPrimaryKey(id);
}

}
